package com.james.customcamera.base;

/**
 * Created by James on 2018/1/31 0031.
 */

public class BaseHttpResult<T> {
    private int code; // 状态码
    private String msg; // 信息
    private T data; // 数据

    public int getCode() {
        return code;
    }

    public void setCode(int status) {
        this.code = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String message) {
        this.msg = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseHttpResult{" +
                "status=" + code +
                ", message='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}

